package com.fdq.dianping.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fdq
 * @since 2024-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dp_blog")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商户id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 探店的照片，最多9张，多张以","隔开
     */
    @TableField("images")
    private String images;

    /**
     * 探店的文字描述
     */
    @TableField("content")
    private String content;

    /**
     * 点赞数量
     */
    @TableField("liked")
    private Integer liked;

    /**
     * 评论数量
     */
    @TableField("comments")
    private Integer comments;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /*
    * 用户姓名
    * */
    @TableField(exist = false)
    private String name;

    /*
     * 用户头像
     * */
    @TableField(exist = false)
    private String icon ;

    /*
    * 是否点赞过
    * */
    @TableField(exist = false)
    private Boolean isLike;

}
